package com.atech.ebayadmin.invoice.dao;

import java.util.List;

import com.atech.ebayadmin.common.pager.Pager;
import com.atech.ebayadmin.invoice.model.Invoice;
import com.atech.ebayadmin.invoice.vo.InvoiceVO;

public interface IInvoiceDAO {
    /**
     * listInvoice 根据条件查询发票记录
     *
     * @param InvoiceVO vo 查询vo
     *
     * @return List  Invoice集合
     * @throws java.lang.Exception
     */
    public List<Invoice> listInvoice(InvoiceVO vo, Pager pager) throws Exception;
    
    public List<Invoice> listInvoice(InvoiceVO vo) throws Exception;
    /**
     * listInvoice 根据条件查询发票记录
     *
     * @param InvoiceVO vo 查询vo
     *
     * @return List  Invoice集合
     * @throws java.lang.Exception
     */
    public void updateInvoice(Invoice po) throws Exception;
    /**
     * listInvoice 根据条件查询发票记录
     *
     * @param InvoiceVO vo 查询vo
     *
     * @return List  Invoice集合
     * @throws java.lang.Exception
     */
    public void saveInvoice(Invoice po) throws Exception;
    /**
     * deleteInvoice 删除发票记录
     *
     * @param InvoiceVO vo 查询vo
     *
     * @return List  Invoice集合
     * @throws java.lang.Exception
     */
    public void deleteInvoice(Invoice po) throws Exception;
    /**
     * isInvoiceDowloaded 判断帐单是否已经下载到数据库
     *
     * @param String itemId,String refNumber
     *
     * @return List  Invoice集合
     * @throws java.lang.Exception
     */
    public boolean isInvoiceDowloaded(String itemId,String refNumber)throws Exception;
    
}
